﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>JskitEvents.html</title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
	 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" type="text/css" href="../main.css">
  	   <script src="../../release/jskit.core.js"></script>
		
 	   <script src="../JskitConfig_doc.js"></script>
		
	</head>
	<body>
		<table border="0" id="Table1">
			<tbody>
				<tr>
					<td class="package">
						JskitEvents.js
					</td>
				</tr>
				<tr>
					<td class="content">
						Jskit 事件初始化装载器
					</td>
				</tr>
				<tr>
					<td class="title">
						Author:
					</td>
				</tr>
				<tr>
					<td class="content">
						AnyRock
					</td>
				</tr>
				<tr>
					<td class="title">
						Initializtion:
					</td>
				</tr>
				<tr>
					<td class="content">
						var jskitEvents = new JskitEvents();
					</td>
				</tr>
				<tr>
					<td class="title">
						Required:
					</td>
				</tr>
				<tr>
					<td class="content">
						core/*
					</td>
				</tr>
				<tr>
					<td class="title">
						<font color="#ff6600">Methods:</font>
					</td>
				</tr>
				<tr>
					<td class="content">
						<table border="1" cellspacing="0" class="content_list" id="Table2">
							<tbody>
								<tr bgcolor="#cccccc">
									<td>
										Name
									</td>
									<td>
										Parameters
									</td>
									<td>
										Return
									</td>
									<td>
										Comment
									</td>
								</tr>
								<tr>
									<td>
										ready(String rEventName,String rFunction)
									</td>
									<td>
										rEventName: 事件Name
										<br>rFunction: Methods:Name(不要带有括号和Parameters)
									</td>
									<td>
										boolean
									</td>
									<td>
										绑定document和window对象的事件
									</td>
								</tr>
								<tr>
									<td>
										add(Object rObject,String rEventName,String rFunction)
									</td>
									<td>
										rObject : 目标对象 
										<br>rEventName : rEventName
										<br>rFunction : Methods:Name(不要带有括号和Parameters)
									</td>
									<td>
										boolean
									</td>
									<td>
										对任意object的事件绑定
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td class="title">
						Example:
					</td>
				</tr>
				<tr>
					<td class="package">
						<textarea name="JskitSyntax_code" class="js">
							
							//在页面装载完成后执行foo
							jskitEvents.ready("onload","foo");

							//点击对象obj1时执行foo
							jskitEvents.add(obj1,"onclick","foo");

							//请不要使用new function(){//to do ...}的格式来传递事件处理Methods:
						</textarea>
					</td>
				</tr>
			</tbody>
		</table>  
	</body>
</html>
